import java.util.Scanner;

public class C13 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入王菲语文成绩");
        int yw=input.nextInt();
        System.out.println("请输入王菲数学成绩");
        int sx=input.nextInt();
        System.out.println("请输入王菲英语成绩");
        int yy=input.nextInt();
        System.out.println("王菲总分："+(yw+sx+yy)+"\n"+"王菲平均分："+(yw+sx+yy)/3);
    }
}
